<div class="header-main" style="height: 80px;">
    <div class="header-left">
        <h1>人力资源管理系统</h1>
        <div class="clearfix"></div>
    </div>
    <div class="header-right">
        <div class="profile_details">
            <ul>
                <li class="dropdown profile_details_drop">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <div class="profile_img">
                            <span class="prfil-img"><i class="glyphicon glyphicon-cog"></i></span>
                            <div class="user-name">
                                <p>管理员</p>
                                <span>Administrator</span>
                            </div>
                            <i class="fa fa-angle-down lnr"></i>
                            <i class="fa fa-angle-up lnr"></i>
                            <div class="clearfix"></div>
                        </div>
                    </a>
                    <ul class="dropdown-menu drp-mnu">
                        <li><a href="/user/hrmUserInfoManage.html?id=${hrmUser.id?default("")}"><i class="fa fa-cog"></i>个人信息管理</a></li>
                        <li><a href="/user/hrmPsdInfoManage.html"><i class="fa fa-user"></i>密码修改</a></li>
                        <li><a href="/"><i class="fa fa-sign-out"></i>退 出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        var navoffeset = $(".header-main").offset().top;
        $(window).scroll(function () {
            var scrollpos = $(window).scrollTop();
            if (scrollpos >= navoffeset) {
                $(".header-main").addClass("fixed");
            } else {
                $(".header-main").removeClass("fixed");
            }
        });
    });
</script>